<meta charset="utf-8"/>
<style type="text/css">
  select::-webkit-scrollbar {
    width: 4px; /* 滚动条的宽度 */
  }

  select::-webkit-scrollbar-thumb {
    background-color: #74b9ff; /* 滚动条轨道颜色 */
    border-radius: 4px; /* 滚动条圆角 */
  }

  select::-webkit-scrollbar-thumb:hover {
    background-color: #0984e3; /* 鼠标悬停时的滚动条轨道颜色 */
  }

</style>
<div class="row">
  <div class="col-xs-12">
    <div class="row">
      <div class="col-xs-12">
        <div style="height:90px;margin-top:2px">
          <table class="no-border" style="display:inline">
            <tr>
              <td permission='store_manage_btn_listData' style="padding-right:6px;display:none">
                所在区域
              </td>
              <td colspan="5" style="height: 50px;">
                <div id="search_store_area" style="display: flex;"> <!-- todo 筛选框 -->
                  <div class="input-group clsProvince" style="display:none">
                    <select class="form-control" id="form-select-Province" style="width: 148px;">
                      <option value="">— 所在省 —</option>
                    </select>
                  </div>
                  <div class="input-group clsCity" style="display:none">
                    <select class="form-control" id="form-select-City" style="width: 148px;">
                      <option value="">所在市</option>
                    </select>
                  </div>
                  <div class="input-group clsCounty" style="display:none">
                    <select class="form-control" id="form-select-County" style="width: 148px;">
                      <option value="">所在区县</option>
                    </select>
                  </div>
                </div>
              </td>
            </tr>
            <tr>
              <td permission='store_manage_btn_listData' style="padding-right:6px;display:none">
                门店账号
              </td>
              <td permission='store_manage_btn_listData' style="display:none">
                <input type="text" id="key_user_account" class="form-control search-query" placeholder="输入登录账号" style="width:148px"/>
              </td>
              <td permission='store_manage_btn_listData' style="padding:0 6px;display:none">
                门店名称
              </td>
              <td permission='store_manage_btn_listData' style="display:none">
                <input type="text" id="key_name" class="form-control search-query" placeholder="输入门店名称" style="width:148px"/>
              </td>
              <td permission='store_manage_btn_listData' style="display:none;">
                <div class="input-group">
                  <span class="input-group-btn"><button type="button" class="btn btn-inverse btn-white" id="btnSearch" title="搜索查询"><span class="ace-icon fa fa-search bigger-110"></span>搜索</button></span>
                </div>
              </td>
              <td permission='store_manage_btn_listData' style="display:none" class="hidden-480">
                <div class="input-group">
                  <span class="input-group-btn"><button type="button" class="btn btn-inverse btn-white" id="btnReset" title="重置清空搜索关键字"><span class="ace-icon fa fa-undo bigger-110"></span>重置</button></span>
                </div>
              </td>
              <td permission='store_manage_btn_add' style="display:none">
                <div class="input-group">
                  <span class="input-group-btn"><button type="button" class="btn btn-inverse btn-white" id="btnAdd" title="新增|添加"><span class="ace-icon fa fa-plus bigger-110"></span>添加</button></span>
                </div>
              </td>
              <td permission='store_manage_btn_delByKeys' style="display:none" class="hidden-480">
                <div class="input-group">
                  <span class="input-group-btn"><button type="button" class="btn btn-inverse btn-white" id="btnDel" title="删除|批量删除"><span class="ace-icon fa fa-trash red2 bigger-110"></span>删除</button></span>
                </div>
              </td>
            </tr>
          </table>
          <div class="hidden-480 pull-right tableTools-container" permission='store_manage_btn_listData' style="display:none;margin-bottom:2px"></div>
        </div>
        <table id="tableListStore" class="table table-striped table-bordered table-hover">
          <tbody>
          <tr>
            <td style="text-align:center;height:37px">正在加载……</td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<div id="div_store_edit" style="display:none;padding-top:2px">
  <form class="form-horizontal" id="form_store_edit" role="form">
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店名称<span style="color:#f00;display:inline-block;vertical-align:middle;width:auto;height:14px;line-height:18px">*</span></div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
      <input type="text" id="name" placeholder="门店名称" class="form-control" maxlength="128" title="门店名称"/>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店缩略图<span style="color:#f00;display:inline-block;vertical-align:middle;width:auto;height:14px;line-height:18px">*</span></div></label>
    <div class="col-sm-9" id="thumbnail_parent" >
      <div class="hr-4"></div>
      <input type="file" id="thumbnail" placeholder="门店缩略图" class="form-control" title="请选择门店缩略图"/>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店环境</div></label>
    <div class="col-sm-9" id="pictures_parent" >
      <div class="hr-4"></div>
      <input type="file" id="pictures" placeholder="门店环境（限制5张）" multiple="multiple" class="form-control" title="请选择门店环境（限制5张）"/>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店联系人</div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
      <input type="text" id="contacts" placeholder="门店联系人" class="form-control" maxlength="40" title="门店联系人"/>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店联系电话</div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
      <input type="text" id="telephone" placeholder="门店联系电话" class="form-control" maxlength="20" title="门店联系电话"/>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店的经度</div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
      <div class="input-group">
        <input type="text" id="longitude" class="form-control search-query hidden-480" maxlength="40" placeholder="门店的经度" oninput="value=value.replace(/[^\d.]/g,'')" title="选择门店的经度"/>
        <span class="input-group-btn">
          <button type="button" class="btn btn-inverse btn-white selectMap">
            <span class="ace-icon fa fa-asl-interpreting bigger-110"></span>
            经度
          </button>
        </span>
      </div>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店的纬度</div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
      <div class="input-group">
        <input type="text" id="latitude" class="form-control search-query hidden-480" maxlength="40" placeholder="门店的纬度" oninput="value=value.replace(/[^\d.]/g,'')" title="选择门店的经度"/>
        <span class="input-group-btn">
          <button type="button" class="btn btn-inverse btn-white selectMap">
            <span class="ace-icon fa fa-asl-interpreting bigger-110"></span>
            纬度
          </button>
        </span>
      </div>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">营业时间</div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
      <input type="text" id="time_frame" placeholder="营业时间（格式：09:00-22:00）" value="09:30-21:00" class="form-control" maxlength="20" title="营业时间（格式：09:00-22:00）"/>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店区域</div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
        <div id="div_store_area" style="margin-bottom:-4px">
          <div class="input-group clsProvince" style="display:none">
            <span class="input-group-btn">
              <button data-toggle="dropdown" class="btn btn-primary btn-white dropdown-toggle col-sm-12" style="margin-left:0.01em">
                <span class="spanText">选择省市</span>
                <i class="ace-icon fa fa-angle-down icon-on-right"></i>
              </button>
              <ul class="dropdown-menu col-sm-12" style="margin-left:-1px"></ul>
            </span>
          </div>
          <div class="input-group clsCity" style="display:none">
            <span class="input-group-btn">
              <button data-toggle="dropdown" class="btn btn-primary btn-white dropdown-toggle col-sm-12" style="margin-left:0.01em">
                <span class="spanText">选择地州市</span>
                <i class="ace-icon fa fa-angle-down icon-on-right"></i>
              </button>
              <ul class="dropdown-menu col-sm-12" style="margin-left:-1px"></ul>
            </span>
          </div>
          <div class="input-group clsCounty" style="display:none">
            <span class="input-group-btn">
              <button data-toggle="dropdown" class="btn btn-primary btn-white dropdown-toggle col-sm-12" style="margin-left:0.01em">
                <span class="spanText">选择区|县</span>
                <i class="ace-icon fa fa-angle-down icon-on-right"></i>
              </button>
              <ul class="dropdown-menu col-sm-12" style="margin-left:-1px"></ul>
            </span>
          </div>
        </div>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店地址<span style="color:#f00;display:inline-block;vertical-align:middle;width:auto;height:14px;line-height:18px">*</span></div></label>
    <div class="col-sm-9">
      <div class="hr-4"></div>
      <input type="text" id="address" placeholder="门店详细地址" class="form-control" maxlength="128" title="门店详细地址"/>
    </div>
    <label class="col-sm-2 control-label no-padding-right"><div class="hr-4">门店介绍</div></label>
    <div class="col-sm-9" style="margin-bottom:6px">
      <div class="hr-4"></div>
      <textarea type="text" id="introduce" placeholder="门店介绍" class="form-control limited" maxlength="921600000" style="width:100%;height:550px;" title="请输入门店介绍"></textarea>
    </div>
  </form>
</div>
<div id="divKeyColumns" style="display:none;padding:1px 0px;"></div>
<div style="display:none;">
  <input type="hidden" id="store_manage_btn_listData"/>
  <input type="hidden" id="store_manage_btn_add"/>
  <input type="hidden" id="store_manage_row_edit"/>
  <input type="hidden" id="store_manage_row_queryById"/>
  <input type="hidden" id="store_manage_row_delById"/>
  <input type="hidden" id="store_manage_btn_delByKeys"/>
</div>
<div id="div_auth_edit" style="display:none;padding-top:2px">
  <form class="form-horizontal" id="form_repair_edit" role="form">
    <label class="col-sm-3 control-label no-padding-right"><div class="hr-4">审核状态</div></label>
    <div class="col-sm-7" style="margin-bottom:6px">
      <div class="hr-4"></div>
      <div class="input-group">
        <span class="input-group-btn">
          <button data-toggle="dropdown" class="btn btn-primary btn-white dropdown-toggle col-sm-12" style="margin-left:0px;">
            <span id="dropdownLabel_state">选择状态</span>
            <i class="ace-icon fa fa-angle-down"></i>
          </button>
          <ul class="dropdown-menu col-sm-12">
            <li>
              <a id="state_" href="javascript:winFn.dropdown('#state','','#dropdownLabel_state','选择状态');">选择状态</a>
            </li>
            <li>
              <a id="state1" href="javascript:winFn.dropdown('#state','1','#dropdownLabel_state','待认证');">待认证</a>
            </li>
            <li>
              <a id="state2" href="javascript:winFn.dropdown('#state','2','#dropdownLabel_state','已通过');">已通过</a>
            </li>
            <li>
              <a id="state3" href="javascript:winFn.dropdown('#state','3','#dropdownLabel_state','未通过');">未通过</a>
            </li>
          </ul>
          <input id="state" maxlength="1" type="hidden"/>
        </span>
      </div>
    </div>
  </form>
</div>
<div class="list-group" id="div_show_html_store" style="display:none;padding-top:2px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"></div>
<div style="display:none" id="div_store_more_details">
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店名称</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_name"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店状态</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_state"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店缩略图</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_thumbnail"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店环境（限制5张）</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_pictures"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店联系人</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_contacts"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店联系电话</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_telephone"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店的经度</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_longitude"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店的纬度</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_latitude"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">营业时间</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_time_frame"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">省主键kid</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_province_id"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">省名称</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_province_name"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">市主键kid</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_city_id"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">市名称</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_city_name"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">区县kid</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_county_id"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">区县名称</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_county_name"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">地址</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_address"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">门店介绍</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_introduce"></div>
  <div class="col-sm-3" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:right">创建时间</div>
  <div class="col-sm-9" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;border-left:1px solid #ddd;width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" id="store_add_date"></div>
  <!--若1行装不下的，可以换用此块代码<div class="col-sm-12" style="height:37px;line-height:37px;border-bottom:1px solid #ddd;text-align:center">审核描述</div>
  <div class="col-sm-12" style="border-bottom:1px solid #ddd;padding:4px;min-height:37px" id="div_store_details"></div>-->
</div>
<script type="text/javascript">
  ;(function($){
    var tableDom = '#tableListStore';
    var urlRoute = '/store/';/*请求controller层的url*/
    var getList = urlRoute + 'listData';/*获取数据列表*/
    var urlAdd = urlRoute + 'add';/*添加*/
    var urlEdit = urlRoute + 'edit';/*编辑*/
    var urlQueryById = urlRoute + 'queryById';/*根据id查询对应的数据*/
    var urlDelById = urlRoute + 'delById';/*根据id删除对应的数据*/
    var urlDelByKeys = urlRoute + 'delByKeys';/*批量删除*/
    var urlGetListArea = urlRoute + 'getListArea';/*获取区域信息*/
    var urlEditAuth = urlRoute + 'editAuth';/*审核（行内）*/
    var stateOriginal = {};//仅供参考，更新优化-选项1,可参考项目law-frontend的页面serviceAd.html和后端law-backend的ServiceADService.java;记录编辑的值,仅在编辑时可用
    var thisTable = null;
    var jsonArea = "{\"clsProvince\":\"选择省市\",\"clsCity\":\"选择地州市\",\"clsCounty\":\"选择区|县\",\"cease\":\"clsCounty\"}";
    thisPage = {
      init : function(){
        this.initTable();
        this.initDateComponent();
        this.createDropdown();
        this.initDom();
        this.addEvent();
      },
      initDom : function(){
        winFn.initFileShoose('#thumbnail',['jpg','JPG','jpeg','JPEG','png','PNG','svg','SVG'],'请选择门店缩略图');
        winFn.initFileShoose('#pictures',['jpg','JPG','jpeg','JPEG','png','PNG','svg','SVG'],'请选择门店环境（限制5张）');
        layerFn.queryGetHintResult(urlGetListArea,{},function(data){
          pulldownArea.initSelectOpts(urlGetListArea,data,'#search_store_area','clsProvince',"{\"clsProvince\":\"选择所在省\",\"clsCity\":\"选择所在市\",\"clsCounty\":\"选择所在区县\",\"cease\":\"clsCounty\"}");
        });
      },
      initDateComponent : function(){
      },
      createDropdown: function(){
      },
      addEvent: function(){
        $(tableDom +' tbody').on('dblclick','td:not(:first-child,:last-child)',function(){//除去每行的第一个和最后一个单元格均可双击事件
          if(verifyFn.inputRequired('#store_manage_row_edit')){
            return;
          }
          thisPage.trDblclick(thisTable.row($(this).parent()).data());
        });
        $('#btnAdd').on('click', function(){
          thisPage.edit();
        });
        //搜索按钮
        $('#btnSearch').on('click', function(){
          thisPage.search();
        });
        //重置按钮
        $('#btnReset').on('click', function(){
          $('#key_name').val('');
          $('#key_user_account').val('');
        });
        //按钮组-自定义显示列
        $('#iconColumn').parent().parent().on('click', function(){
          pageDataTable.columnCustom(thisTable, tableDom,'#divKeyColumns');
        });
        //按钮组-搜索
        $('#iconRefresh').parent().parent().on('click', function(){
          thisPage.search();
        });
        $('#btnDel').on('click', function(){
          thisPage.delKeys();
        });
        $('.selectMap').on('click',function(){
          thisPage.openPage();
        });
      },
      openPage : function(){
        /*需要依赖 layui/css/layui.css;layui/layui.js;https://map.qq.com/api/js?v=2.exp&key=CBMBZ-BKJW3-FBL3C-OYVXS-BPSSZ-O5BAE&libraries=place&search=1&type=1&referer=PC*/
        layui.config({
          base: 'module/TMap/'
        }).use('TMap');
        layui.use([
          'code','TMap'
        ], function(){
          //var layer = layui.layer;
          //var $ = layui.jquery;
          var TMap = layui.TMap;
          layui.code();
          TMap.open({//配置需要参考图片 demo_1.png,否则无法使用搜索功能
            key : "CBMBZ-BKJW3-FBL3C-OYVXS-BPSSZ-O5BAE",
            dialog : {
              title : '获取位置经纬度',
              area : ['966px','534px'],
              btn : ['确定','关闭'],
              move : false,
              yes : function(mapIndex,layero){
                var point = $(layero).find('#poiCur').val();
                var adress = $(layero).find('#addrCur').val();
                if(point == null || point == ''){
                  layerFn.alert('请选择位置经纬度', AppKey.code.code199);
                  return;
                }
                var points = point.split(',');
                winFn.setDomValue('#latitude',points[0]);
                winFn.setDomValue('#longitude',points[1]);
                winFn.setDomValue('#address',adress);
                layerFn.closeIndex(mapIndex);
              }
            }
          });
        });
      },
      /**获取已选中的主键集合,用法:var kids = thisPage.getKeyIds();if(kids == null){layerFn.alert('请选择要操作的数据', AppKey.code.code199);return;}*/
      getKeyIds : function(){
        var arrays = thisTable.rows({selected : true}).data();//获取已勾选的数据行
        if(arrays.length == 0){
          return null;
        }
        var kids = '';
        for(var i = 0; i < arrays.length; i++){
          var value = arrays[i].kid;
          if(value != ''){
            if(kids.length > 0) kids += ",";
            kids += value;
          }
        }
        return kids;
      },
      /*批量删除*/
      delKeys: function(){
        if(verifyFn.inputCheck('#store_manage_btn_delByKeys','没有删除操作权限')) return;
        var kids = '';
        var index = 0;
        $(tableDom + ' tbody input:checked').each(function(){
          index++;
          var value = this.value;
          if(value != null && value != ''){
            if(kids.length > 0) kids += ",";
            kids += value;
          }
        });
        if(index == 0){
          layerFn.alert('请选择要删除的数据!', AppKey.code.code199);
          return;
        }
        layerFn.confirm('将要删除[' + index + ']条数据且是无法恢复,确定要继续吗?', function(){
          layerFn.delBatchHint(urlDelByKeys, kids, function(data){
            $(tableDom+'_wrapper table thead tr th:eq(0) label input[type="checkbox"]').prop("checked",false);
            thisPage.complete(data, null, true);
          });
        });
      },
      initTable : function(){
        var optsVisible = getOptsVisible('store_manage_row');//确定是否要显示操作选项
        var optsDelByKeys = getOptsVisible('store_manage_btn_delByKeys');
        var aoColumns = [];
        if(optsDelByKeys){
          aoColumns.push({
            sortable : false,
            data : "kid",
            width : "38px",
            class : "center",
            visible : true,
            title : '<label title="全选|不选"><input type="checkbox" class="ace" /><span class="lbl"></span></label>'
          });
        }
        aoColumns.push({
          data : "name",
          sortable : false,
          title : "门店名称"
        });
        aoColumns.push({
          data : "username",
          sortable : true,
          title : "邀请人账号"
        });
        aoColumns.push({
          data : "contacts",
          sortable : false,
          title : "门店联系人",
          className : 'hidden-480',
          render : function(value,type,row,meta){
            if(value){
              var len = value.length;
              if(len > 35){
                return '<span title="'+value+'">'+value.substring(0,35)+'…'+'</span>';
              }else{
                return '<span title="'+value+'">'+value+'</span>';
              }
            }else{
              return "";
            }
          }
        });
        aoColumns.push({
          data : "telephone",
          sortable : false,
          title : "门店联系电话",
          className : 'hidden-480',
          render : function(value,type,row,meta){
            if(value){
              var len = value.length;
              if(len > 35){
                return '<span title="'+value+'">'+value.substring(0,35)+'…'+'</span>';
              }else{
                return '<span title="'+value+'">'+value+'</span>';
              }
            }else{
              return "";
            }
          }
        });
        aoColumns.push({
          data : "prefix",
          sortable : false,
          title : "区域",
          render : function(value,type,row,meta){
            return row.province_name+row.city_name+row.county_name;
          }
        });
        aoColumns.push({
          data : "address",
          sortable : false,
          title : "门店地址",
          render : function(value){
            var len = value.length;
            if(len > 20){
              return "<a href='javascript:layerFn.viewValue(\""+value+"\",\"430px\");' title='点击查看详情' style='outline:none;text-decoration: none;'>"+value.substring(0,20)+"…</a>";
            }else{
              return value;
            }
          }
        });
        aoColumns.push({
          data : "state",
          sortable : true,
          title : "门店状态",
          render : function(value,type,row,meta){
            var deleted = row.deleted;
            if(deleted == 1){
              return '已删除';
            }else{
              return (row.state == 1) ? '正常营业' : '暂停营业';
            }
          }
        });
        aoColumns.push({
          data : "auth_status",
          sortable : true,
          title : "认证状态",
          render : function(value,type,row,meta){
            if(value === 1){
              return '待认证';
            }else if(value === 2){
              return '已通过';
            }else if(value === 3){
              return '未通过';
            }else{
              return "";
            }
          }
        });
        aoColumns.push({
          data : "add_date",
          sortable : true,
          title : "创建时间",
          render : function(value){
            if(value){
              return winFn.formatDate(value,true);/*宽度width: '121px',*/
            }else{
              return "";
            }
          }
        });
        aoColumns.push({
          data : "_kid_more_",
          sortable : false,
          title : "查看更多",
          width: '95px',
          render : function(value,type,row,meta){
            var html = "<div style='margin:-10px -2px -10px -2px'><span class='input-group-btn'>";
            html += "<button data-toggle='dropdown' class='btn btn-primary btn-white dropdown-toggle' style='margin-left:0px;border:none' title='更多选项'>";
            html += "<span style='margin-left:-4px;margin-right:4px;padding-right:-20px'>更多选项</span>";
            html += "<i class='ace-icon fa fa-angle-down'></i>";
            html += "</button>";
            html += "<ul class='dropdown-menu dropdown-info dropdown-menu-right' style='margin-left:-1px;width:95px;min-width:95px;margin-right:-2px'>";
            html += "<li style='display:none' permission='store_manage_row_queryById' title='操作选项'><a href='javascript:thisPage.rowColumnDetails("+meta.row+",\"introduce\",1);'>门店介绍</a></li>";
            html += "<li style='display:none' permission='store_manage_row_queryById' title='缩略图'><a href='javascript:thisPage.rowColumnDetails("+meta.row+",\"img_front\",4);'>人像面</a></li>";
            html += "<li style='display:none' permission='store_manage_row_queryById' title='门店环境'><a href='javascript:thisPage.rowColumnDetails("+meta.row+",\"img_reverse\",4);'>国徽面</a></li>";
            html += "<li style='display:none' permission='store_manage_row_queryById' title='门店环境'><a href='javascript:thisPage.rowColumnDetails("+meta.row+",\"license\",4);'>营业执照</a></li>";
            html += "<li style='display:none' permission='store_manage_row_queryById' title='查看协议'><a href='javascript:thisPage.rowColumnDetails("+meta.row+",\"protocol\",4);'>查看协议</a></li>";
            html += "<li style='display:none' permission='store_manage_row_queryById' title='打印协议,网页打印'><a href='javascript:thisPage.rowColumnDetails("+meta.row+",\"protocol\",5);'>打印协议</a></li>";
            html += "</ul>";
            html += "</span>";
            html += "</div>";
            return html;
          }
        });
        if(optsVisible){
          aoColumns.push({
            data : "_kid_",
            width: '75px',
            title : "<label style='color:#000;margin-left:6px;' title='单行操作'>操作选项</label>",/*此处的字‘操作选项’请勿修改,此处的文字还有其它用途*/
            sortable : false
          });
        }
        var columnDefs = [];
        if(optsDelByKeys){
          columnDefs.push({
            targets : 0,
            render : function(value,type,row,meta){
              return '<label title="选择|取消"><input type="checkbox" name="kid" value="'+ value +'" style="cursor:pointer;text-decoration:none;outline:none;"/><span class="lbl"></span></label>';
            }
          });
        }
        if(optsVisible){//是否来显示某列
          columnDefs.push({
            targets : -1,
            render : function(value,type,row,meta){
              return "<a title='编辑|修改' href='javascript:thisPage.rowEdit("+ meta.row +");' style='outline:none;text-decoration: none;color:#3b8cff;margin-left:4px;display:none' permission='store_manage_row_edit'>编辑</a>" +
                "<a title='删除当前行数据' class='hidden-480' href='javascript:thisPage.rowDel("+ meta.row +");' style='outline:none;text-decoration: none;color:#f00;margin-left:6px;display:none' permission='store_manage_row_delById'>删除</a>" +
                "<a title='门店审核' class='hidden-480' href='javascript:thisPage.rowAuth("+ meta.row +");' style='outline:none;text-decoration: none;color:#f00;margin-left:6px;display:none' permission='store_manage_row_auth'>审核</a>";
              //<a title='查看更多' class='hidden-480' href='javascript:thisPage.recordInfo(\""+ meta.row +"\");' style='outline:none;text-decoration: none;color:#000;margin-left:6px;display:none' permission='store_manage_row_queryById'>详情</a>
              /*var html = "";//若是操作选项有多个时则试试下面的方式
              html += "<div style='margin:-10px -2px -10px -2px'><span class='input-group-btn'>";
              html += "<button data-toggle='dropdown' class='btn btn-primary btn-white dropdown-toggle' style='margin-left:0px;border:none' title='更多选项'>";
              html += "<span style='margin-left:-4px;margin-right:4px;padding-right:-20px'>操作选项</span>";
              html += "<i class='ace-icon fa fa-angle-down'></i>";
              html += "</button>";
              html += "<ul class='dropdown-menu dropdown-info dropdown-menu-right' style='margin-left:-1px;width:93px;min-width:93px;'>";
              html += "<li style='display:none' permission='store_manage_row_edit' title='编辑当前行'><a href='javascript:thisPage.rowEdit(" + meta.row + ");'>编辑</a></li>";
              html += "<li style='color:#f00;display:none' permission='store_manage_row_delById' title='删除当前行'><a href='javascript:thisPage.rowDel(" + meta.row + ");'>删除</a></li>";
              html += "</ul>";
              html += "</span>";
              html += "</div>";
              return html;*/
            }
          });
        }
        columnDefs.push({
          targets : optsDelByKeys ? [1,2,3,4,5,6,7,8] : [0,1,2,3,4,5,6,7,8],
          render : function(value,type,row,meta){
            return pageDataTable.formatColumn(value);
          }
        });
        columnDefs.push({
          visible : false,//列的隐藏显示
          targets : []//指定列索引
        });
        thisTable = pageDataTable.initDataTable({
          tableDom : tableDom,
          sAjaxSource : getList,
          fnServerParams : function(params){
            params.push(
              {"name":"name","value":winFn.getDomValue('#key_name')},
              {"name":"userAccount","value":winFn.getDomValue('#key_user_account')},
              {"name":"province_id","value":winFn.getDomValue('#form-select-Province option:selected')},
              {"name":"city_id","value":winFn.getDomValue('#form-select-City option:selected')},
              {"name":"county_id","value":winFn.getDomValue('#form-select-County option:selected')}
            );
          },
          aoColumns : aoColumns,
          columnDefs : columnDefs,
          complete : function(settings,data){},
          selected : function(selected){}
        });
        pageDataTable.buttons(thisTable);
        pageDataTable.action(thisTable);
        pageDataTable.select(thisTable, tableDom);
        pageDataTable.tooltip();
        $('.dataTables_scroll .dataTables_scrollBody').removeAttr('style');//解决dataTable表头下拉框被tbody遮挡
      },
      //双击事件
      trDblclick: function(data){
        if(data){
          thisPage.edit(data.kid);
        }
      },//查看隐藏部分是全部内容,用法 render : function(value,type,row,meta){thisPage.rowColumnView();}
      rowColumnView : function(value){
        if(value == null || value == undefined) return '';
        value = typeof value === 'string' ? value.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;') : value;
        var len = value.length;
        if(len > 30){
          return "<a href='javascript:layerFn.viewValue(\""+value+"\",\"430px\");' title='点击查看详情' style='outline:none;text-decoration: none;'>"+value.substring(0,30)+"…</a>";
        }else{
          return value;
        }
      },
      search: function(){
        if(verifyFn.inputCheck('#store_manage_btn_listData','没有操作权限')) return;
        $(tableDom + '_wrapper table input[type=checkbox]').prop('checked', false);
        thisTable.draw();
      },
      resetForm: function(){
        winFn.clearFormData('#form_store_edit',null,['time_frame']);
      },
      edit: function(kid){
        var title = '添加';
        if(kid != null && kid.length > 0){
          if(verifyFn.inputCheck('#store_manage_row_queryById','没有操作权限')) return;
          title = '编辑';
          layerFn.queryByIdHint(urlQueryById, kid, function(data){
            thisPage.openDialog(title, kid, data);
          });
        }else{
          thisPage.openDialog(title);
        }
      },
      //移除不需要对比的key(此方法可有可无)
      editJson : function(data,keys){
        if(keys){
          for(var h = 0; h < keys.length; h++){
            delete data[keys[h]];//删除key元素
          }
        }
        stateOriginal = data;
      },
      //对比是否已修改了值,仅需判断必填的字段，文件上传的字段单独处理
      filterValue : function(params){
        if(stateOriginal != null){
          var ignoreKeys = '';
          var requiredKeys = '';
          for(var so in stateOriginal){
            if(params[so] == stateOriginal[so]){
              delete params[so];
              if(ignoreKeys != ''){
                ignoreKeys += ','+so;
              }else{
                ignoreKeys += so;
              }
            }else{
              if(requiredKeys != ''){
                requiredKeys += ','+so;
              }else{
                requiredKeys += so;
              }
            }
          }
          if(ignoreKeys != ''){
            params['ignoreKeys'] = ignoreKeys;//记录后端忽略验证的key以,隔开的字符串,注意数据库字段是否允许为空,可参考项目law-backend的joins.html;law-backend的JoinsService的方法edit();
          }
          if(requiredKeys != ''){
            params['requiredKeys'] = requiredKeys;//记录后端必填验证的key以,隔开的字符串
          }
        }
      },
      openDialog: function(title, kid, map){
        var url = urlAdd;
        if(kid != null && kid.length > 0){
          url = urlEdit;
          if(verifyFn.inputNull('#store_manage_row_edit','没有编辑权限')) return;
        }else{
          if(verifyFn.inputNull('#store_manage_btn_add','没有添加权限')) return;
        }
        layerFn.winKindEditor(title,'#div_store_edit',['#introduce'],(map == null ? null : map.data), ['966px','680px'], function(layerIndex, layero){
          if(verifyFn.inputEmpty('#name')) return;
          if(kid == null || kid.length <= 0){
            if(verifyFn.inputNull('#thumbnail','请选择门店缩略图文件')) return;
          }
          var province_id = winFn.getDomValue('#div_store_area .clsProvince input',true);
          var province_name = $('#div_store_area .clsProvince span.spanText').text();
          var city_id = winFn.getDomValue('#div_store_area .clsCity input',true);
          var city_name = $('#div_store_area .clsCity span.spanText').text();
          var county_id = winFn.getDomValue('#div_store_area .clsCounty input',true);
          var county_name = $('#div_store_area .clsCounty span.spanText').text();
          if(kid == null || kid == undefined){
            if(province_id == null){
              layerFn.alertCallback('请选择门店所在省|市',function(){});
              return;
            }
            if(city_id == null){
              layerFn.alertCallback('请选择门店所在地州市',function(){});
              return;
            }
            if(county_id == null){
              layerFn.alertCallback('请选择门店所在区|县',function(){});
              return;
            }
          }
          if(verifyFn.inputEmpty('#address')) return;
          var params = {
            name : winFn.getDomValue('#name',true),
            contacts : winFn.getDomValue('#contacts',true),
            telephone : winFn.getDomValue('#telephone',true),
            longitude : winFn.getDomValue('#longitude',true),
            latitude : winFn.getDomValue('#latitude',true),
            time_frame : winFn.getDomValue('#time_frame',true),
            province_id : province_id,
            province_name : province_id != null ? province_name : null,
            city_id : city_id,
            city_name : city_id != null ? city_name : null,
            county_id : county_id,
            county_name : county_id != null ? county_name : null,
            address : winFn.getDomValue('#address',true),
            introduce : winFn.getDomValue('#introduce',true),
            kid : kid
          };
          var formData = new FormData();
          for(var key in params){
            formData.append(key,params[key]);
          }
          var file_thumbnail = document.getElementById("thumbnail").files[0];
          if(file_thumbnail){
            var mb = file_thumbnail.size / (1024 * 1024);//得到的MB,做文件大小限制
            if(mb > 3){
              layerFn.alert('门店缩略图已超过３ＭＢ',AppKey.code.code199);
              return;
            }
            formData.append("thumbnail",file_thumbnail);
          }else{
            formData.append("thumbnail",null);
          }
          var file_picturess = document.getElementById("pictures").files;//单个表单字段允许多个文件
          if(file_picturess.length > 0){
            if(file_picturess.length > 5){
              layerFn.alert('门店环境图片不能超过5张',AppKey.code.code199);
              return;
            }
            for(var h=0;h<file_picturess.length;h++){
              var file = file_picturess[h];
              var mb = file.size / (1024 * 1024);//得到的MB,做文件大小限制
              if(mb > 3){
                layerFn.alert('门店环境已超过３ＭＢ',AppKey.code.code199);
                return;
              }
              //var ft = file.type;//获取的是文件类型
              formData.append("pictures"+h,file);//获取上传的多个文件
            }
          }else{
            formData.append("pictures",null);
          }
          layerFn.formSubmit(url,formData,function(data){
            thisPage.complete(data,layerIndex,true);
          });
        });
        thisPage.resetForm();
        if(map != null){
          $.each(map.data,function(k,v){
            try{
              if(k == 'temp_thumbnail'){//保留,占位符,若使用到则删除前缀temp_即可
                //var jsonThumbnail = eval('(' + k + ')');文件上传字段类型为json类型
                //$('#thumbnail').attr('rel',v);//a标签,保留
                return true;
              }
              if(k == 'temp_pictures'){//保留,占位符,若使用到则删除前缀temp_即可
                //var jsonPictures = eval('(' + k + ')');文件上传字段类型为json类型
                //$('#pictures').attr('rel',v);//a标签,保留
                return true;
              }
              $('#' + k).val(v);//若是有问题则把这个放在最前面
            }catch(e){}
          });
        }
        //含新增和编辑
        layerFn.queryGetHintResult(urlGetListArea,{},function(data){
          pulldownArea.initOpts(urlGetListArea,data,'#div_store_area','clsProvince',jsonArea);
          if(AppKey.code.code200 == data.code){
            if(map != null){//编辑时
              var mapData = map.data;
              layerFn.queryGetHintResult(urlGetListArea,{province_id:mapData.province_id,city_id:mapData.city_id,selected:1},function(data){
                if(AppKey.code.code200 == data.code){
                  var resultData = data.data;
                  pulldownArea.fillLabelValue('#div_store_area','clsProvince',mapData.province_id);//省级
                  pulldownArea.fillLabelValue('#div_store_area','clsCity',mapData.city_id,urlGetListArea,jsonArea,resultData.city_id);//市级
                  pulldownArea.fillLabelValue('#div_store_area','clsCounty',mapData.county_id,urlGetListArea,jsonArea,resultData.county_id);//区|县
                }
              });
              pulldownArea.showPullDown('#div_store_area',mapData);//防止请求失败及防止code!=200时的兜底回写(仅执行1次，因为上面的是方法体，不会因为顺序执行再执行到此行了)
            }
          }
        });
      },
      rowEdit : function(rowIndex){
        var row = thisTable.row(rowIndex).data();
        thisPage.edit(row.kid);
      },
      rowDel : function(rowIndex){
        if(verifyFn.inputCheck('#store_manage_row_delById','没有删除操作权限')) return;
        var row = thisTable.row(rowIndex).data();
        layerFn.confirm('删除后无法恢复,确定要删除吗?', function(){
          layerFn.delByIdHint(urlDelById, row.kid,function(data){
            thisPage.complete(data,null,true);
          });
        });
      },
      rowAuth : function(rowIndex){
        var map = thisTable.row(rowIndex).data();
        var invitationUser = map.preInvitationUser;
        var pre_title = '';
        if(invitationUser){
          pre_title = '邀请账号['+invitationUser+']';
        }
        layerFn.addOrEdit(pre_title+'审核状态','#div_auth_edit', ['400px','256px'], function(layerIndex,layero){
          if(verifyFn.inputNull('#state','请选择审核状态')) return;
          var params = {
            state : winFn.getDomValue('#state'),
            kid : map.kid,
            user_id : map.user_id
          };
          layerFn.submit(urlEditAuth, params, function(data){
            thisPage.complete(data, layerIndex, true);
          });
        });
        thisPage.resetForm();
        if(map != null){
          $.each(map,function(k,v){
            try{
              if(k == 'auth_status'){
                winFn.editDropdown('#dropdownLabel_state','state' + v);
                return true;
              }
            }catch(e){}
          });
        }
      },
      //column指定列名,type:1是普通的文本;2json对象里的value[字段已做转换 JSON_UNQUOTE(JSON_EXTRACT(icon,'$.urlFile')) as icon];3是json对象里含json对象;4是json对象[字段未做转换];
      rowColumnDetails : function(rowIndex,column,type){
        var row = thisTable.row(rowIndex).data();
        var columnValue = row[column];
        if(columnValue != undefined){
          switch (type){
            case 1:
              layerFn.viewValue(columnValue || '暂无数据','430px');
              break;
            case 2:
              window.open(webFiles+columnValue,'_blank').location;
              break;
            case 3:
              thisPage.showHtml(columnValue,column,'originalName');//json里含json
              break;
            case 4:
              var objs = eval('('+columnValue+')');
              if(objs != undefined && objs.urlFile != undefined){
                window.open(webFiles+objs.urlFile,'_blank').location;
              }else{
                layerFn.alert('暂无数据',AppKey.code.code199);
              }
              break;
            case 5:
              var obj = eval('('+columnValue+')');
              if(obj != undefined && obj.urlFile != undefined){
                sessionStorage.setItem('file_url',webFiles+obj.urlFile);
                window.open('print.html','_blank').location;
              }else{
                layerFn.alert('暂无数据',AppKey.code.code199);
              }
              break;
            default:
              break;
          }
        }else{
          layerFn.alert('暂无数据',AppKey.code.code199);
        }
      },
      //指定column字段名,key获取文件名
      showHtml : function(values,column,key){
        var objs = eval('('+values+')');
        var html = '';
        if(objs != undefined){
          var total = objs.total;
          if(total > 0){
            for(var x=0;x<total;x++){
              var _obj = objs[column+x];
              if(_obj != undefined){
                var _url = _obj['urlFile'];
                var _label = _obj[key] || '文件'+(i+1);
                var _size = _obj['fileSize'];
                if(_size != undefined){
                  _size = (_size+'');
                  var _end = _size.indexOf('.');
                  if(_end != -1){
                    _size = _size.substring(0,_end);
                  }
                }else{
                  _size = '未知大小';
                }
                if(_url != undefined){
                  html += '<a target="_blank" class="list-group-item" style="padding:7px 2px 7px 2px" title="文件大小:'+_size+'KB" href="'+webFiles+_url+'">'+_label+'</a>';
                } else {
                  html += '<a class="list-group-item disabled" style="padding:7px 2px 7px 2px" href="javascript:;">'+_label+'</a>';
                }
              }
            }
          }
        }
        if(html == ''){
          html = '<a class="list-group-item disabled" style="padding:7px 2px 7px 2px;text-align:center;horiz-align:center;" href="javascript:;">暂无数据</a>';
        }
        $('#div_show_html_store').html(html);
        layerFn.winDom('查看内容','#div_show_html_store',['450px','350px'],function(layerIndex,layero){},'关闭');
      },
      //行内查看详情(查看未显示的字段)
      recordInfo : function(rowIndex){
        if(verifyFn.inputCheck('#store_manage_row_queryById','没有操作权限')) return;
        var row = thisTable.row(rowIndex).data();
        layerFn.queryByIdHint(urlQueryById,row.kid,function(data){
          var objs = data.data;
          $.each(objs,function(k,v){
            try{
              if(k == 'name'){
                $('#store_name').text(v);
                $('#store_name').attr('title',v);
                return true;
              }
              if(k == 'state'){
                $('#store_state').text(v);
                $('#store_state').attr('title',v);
                return true;
              }
              if(k == 'thumbnail'){
                $('#store_thumbnail').text(v);
                $('#store_thumbnail').attr('title',v);
                return true;
              }
              if(k == 'pictures'){
                $('#store_pictures').text(v);
                $('#store_pictures').attr('title',v);
                return true;
              }
              if(k == 'contacts'){
                $('#store_contacts').text(v);
                $('#store_contacts').attr('title',v);
                return true;
              }
              if(k == 'telephone'){
                $('#store_telephone').text(v);
                $('#store_telephone').attr('title',v);
                return true;
              }
              if(k == 'longitude'){
                $('#store_longitude').text(v);
                $('#store_longitude').attr('title',v);
                return true;
              }
              if(k == 'latitude'){
                $('#store_latitude').text(v);
                $('#store_latitude').attr('title',v);
                return true;
              }
              if(k == 'time_frame'){
                $('#store_time_frame').text(v);
                $('#store_time_frame').attr('title',v);
                return true;
              }
              if(k == 'province_id'){
                $('#store_province_id').text(v);
                $('#store_province_id').attr('title',v);
                return true;
              }
              if(k == 'province_name'){
                $('#store_province_name').text(v);
                $('#store_province_name').attr('title',v);
                return true;
              }
              if(k == 'city_id'){
                $('#store_city_id').text(v);
                $('#store_city_id').attr('title',v);
                return true;
              }
              if(k == 'city_name'){
                $('#store_city_name').text(v);
                $('#store_city_name').attr('title',v);
                return true;
              }
              if(k == 'county_id'){
                $('#store_county_id').text(v);
                $('#store_county_id').attr('title',v);
                return true;
              }
              if(k == 'county_name'){
                $('#store_county_name').text(v);
                $('#store_county_name').attr('title',v);
                return true;
              }
              if(k == 'address'){
                $('#store_address').text(v);
                $('#store_address').attr('title',v);
                return true;
              }
              if(k == 'introduce'){
                $('#store_introduce').text(v);
                $('#store_introduce').attr('title',v);
                return true;
              }
              if(k == 'add_date'){
                $('#store_add_date').text(v);
                $('#store_add_date').attr('title',v);
                return true;
              }
            }catch(e){}
          });
          layerFn.winRDom('查看详情','#div_store_more_details','550px',function(layerIndex,layero){},'关闭');
        });
      },
      complete: function(data,index,search){
        try{
          if(index){
            layerFn.closeIndex(index);
          }
          if(search){
            thisPage.search();
          }
          if(data){
            layerFn.handleResult(data.msg,data.code);
          }
        }catch(e){}
      }
    };
    thisPage.init();
    $('script').remove();
  })(jQuery);
</script>